package com.yj.event_listener.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.telephony.TelephonyManager;

import com.yj.event_listener.util.LogUtil;

public class PhoneReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        LogUtil.d(intent.getStringExtra(TelephonyManager.EXTRA_STATE));
        LogUtil.d(intent.getStringExtra(TelephonyManager.EXTRA_INCOMING_NUMBER));
    }
}
